﻿<%@ Page Title="" Culture="en-US" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeFile="WIN12_1S.aspx.cs" Inherits="IFRS_WIN12_1S" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <fieldset class="fsStandard">
                <legend>
                    <asp:Label ID="lblTopTitle" SkinID="CaptionBold" runat="server" Text="<%$Resources:ifrsMenu,ConditionSearch%>" />
                </legend>
                <div class="table_detail">
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblLicenseNo" runat="server" Text="<%$Resources:ifrsField,CUSTOMER_LICENSENO_S%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtLicenseNo" SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblCustomerType" runat="server" Text="<%$Resources:ifrsField,CUSTOMER_TYPE%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:RadioButtonList ID="rbtCustomerType" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Text="<%$Resources:ifrsField,CUSTOMER_TYPE_INDIVIDUALS%>" Value="1"/>
                                <asp:ListItem Text="<%$Resources:ifrsField,CUSTOMER_TYPE_FIRMS%>" Value="2" />
                            </asp:RadioButtonList>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblOccupationType" runat="server" Text="<%$Resources:ifrsField,OCCUPATION_TYPE%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:RadioButtonList ID="rbtOccupationType" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Text="<%$Resources:ifrsField,OCCUPATION_TYPE_FULLTIME%>" Value="1"/>
                                <asp:ListItem Text="<%$Resources:ifrsField,OCCUPATION_TYPE_FREELANCE%>" Value="2" />
                            </asp:RadioButtonList>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblResidentArea" runat="server" Text="<%$Resources:ifrsField,RESIDENTAREA%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:RadioButtonList ID="rbtResidentArea" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Text="<%$Resources:ifrsField,RESIDENTAREA_OUT%>" Value="1"/>
                                <asp:ListItem Text="<%$Resources:ifrsField,RESIDENTAREA_IN%>" Value="2" />
                            </asp:RadioButtonList>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblEtockExChangeRegister" runat="server" Text="<%$Resources:ifrsField,STOCKEXCHANGE_REGISTER%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:RadioButtonList ID="rbtEtockExChangeRegister" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Text="<%$Resources:ifrsField,STOCKEXCHANGE_REGISTER%>" Value="1"/>
                                <asp:ListItem Text="<%$Resources:ifrsField,STOCKEXCHANGE_REGISTER_NOT%>" Value="2" />
                            </asp:RadioButtonList>
                        </div>
                    </div>
                    <div class="colbtn">
                        <asp:Button ID="btnSEARCH" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SEARCH%>" OnClick="btnSEARCH_Click" />&nbsp;
                    <asp:Button ID="btnCLEAR" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CLEAR%>" OnClick="btnCLEAR_Click" />&nbsp;
                    <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>" OnClick="btnCANCEL_Click" />&nbsp;
                    </div>
                </div>
            </fieldset>
            <div class="colbtnAdd">
                <asp:Button ID="btnAdd" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,ADD%>" OnClick="btnAdd_Click" />
            </div>
            <div class="content_grid">
                <asp:GridView ID="gvSearch" runat="server" AllowSorting="true" CssClass="CSSTableGenerator" AutoGenerateColumns="false"
                    AllowPaging="true" PageSize="10" OnRowDataBound="gvSearch_RowDataBound" OnSorting="gvSearch_Sorting">
                    <Columns>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                <asp:Label ID="lblgvSEQ" runat="server" Text="<%$Resources:ifrsField,CENTER_SEQ%>" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblRowNumber" runat="server" Text='<%# Eval("RowNumber","{0:N0}") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="CustomerID" Visible="false" />
                        <asp:TemplateField SortExpression="CustomerCode" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,CUSTOMER_CODE%>">
                            <ItemTemplate>
                                <asp:Label ID="lblCustomerCode" runat="server" Text='<%# Eval("CustomerCode") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="LicenseNo" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,CUSTOMER_LICENSENO%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvLicenseNo" runat="server" Text='<%# Eval("LicenseNo") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="CustomerType" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,CUSTOMER_TYPE%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvCustomerType" runat="server" Text='<%# Eval("CustomerType") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>    
                        <asp:TemplateField SortExpression="OccupationType" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,OCCUPATION_TYPE%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvOccupationType" runat="server" Text='<%# Eval("OccupationType") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>                    
                        <asp:TemplateField SortExpression="IssueAmount" ItemStyle-HorizontalAlign="Right"
                            HeaderText="<%$Resources:ifrsField,ISSUE_AMOUNT%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvIssueAmount" runat="server" Text='<%# Eval("IssueAmount","{0:N2}") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="ResidentArea" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,RESIDENTAREA%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvResidentArea" runat="server" Text='<%# Eval("ResidentArea") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                          <asp:TemplateField SortExpression="StockExChangeRegister" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,STOCKEXCHANGE_REGISTER%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvStockExChangeRegister" runat="server" Text='<%# Eval("StockExChangeRegister") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkCopy" AlternateText="<%$Resources:ifrsMenu,Copy%>" runat="server"
                                    OnClick="lnkCopyItems_Click">
                                    <asp:Image ID="imgAdd" runat="server" AlternateText="<%$Resources:ifrsMenu,Copy%>" ToolTip="<%$Resources:ifrsMenu,Copy%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/copy.png" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" AlternateText="<%$Resources:ifrsMenu,Securable%>"
                                    runat="server" OnClick="lnkEditItems_Click">
                                    <asp:Image ID="imgEdit" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>" ToolTip="<%$Resources:ifrsMenu,Edit%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/Edit.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkDelete" AlternateText="<%$Resources:ifrsMenu,Delete%>" runat="server"
                                    OnClick="lnkDeleteItems_Click">
                                    <asp:Image ID="imgDelete" runat="server" AlternateText="<%$Resources:ifrsMenu,Delete%>" ToolTip="<%$Resources:ifrsMenu,Delete%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/delete.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkView" AlternateText="<%$Resources:ifrsMenu,View%>" runat="server"
                                    OnClick="lnkViewItems_Click">
                                    <asp:Image ID="imgView" runat="server" AlternateText="<%$Resources:ifrsMenu,View%>" ToolTip="<%$Resources:ifrsMenu,View%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/Preview.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="content_paging">
                <asp:Repeater ID="repPager" runat="server">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>'
                            Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed"></asp:LinkButton>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
    </div>
</asp:Content>